package com.epfresh.supplier.entity;

import android.os.Parcel;
import android.os.Parcelable;
/**
 * Created by zhuli on 2017/8/21.
 */

public class CustomerItem implements Parcelable{
    private String id;//3
    private String groupId;//1
    private String phone;//13888888866
    private String accountId;
    private boolean isTemp;//是否是临时客户
    private String remark;
    private String name;
    private String org;
    private String groupName;
    private String totalFee;//欠款

    public CustomerItem() {
    }

    protected CustomerItem(Parcel in) {
        id = in.readString();
        groupId = in.readString();
        phone = in.readString();
        accountId = in.readString();
        isTemp = in.readByte() != 0;
        remark = in.readString();
        name = in.readString();
        org = in.readString();
        groupName = in.readString();
        totalFee = in.readString();
    }

    public static final Creator<CustomerItem> CREATOR = new Creator<CustomerItem>() {
        @Override
        public CustomerItem createFromParcel(Parcel in) {
            return new CustomerItem(in);
        }

        @Override
        public CustomerItem[] newArray(int size) {
            return new CustomerItem[size];
        }
    };

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public boolean isTemp() {
        return isTemp;
    }

    public void setTemp(boolean temp) {
        isTemp = temp;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOrg() {
        return org;
    }

    public void setOrg(String org) {
        this.org = org;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getTotalFee() {
        return totalFee;
    }

    public void setTotalFee(String totalFee) {
        this.totalFee = totalFee;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(id);
        parcel.writeString(groupId);
        parcel.writeString(phone);
        parcel.writeString(accountId);
        parcel.writeByte((byte) (isTemp ? 1 : 0));
        parcel.writeString(remark);
        parcel.writeString(name);
        parcel.writeString(org);
        parcel.writeString(groupName);
        parcel.writeString(totalFee);
    }

}
